projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5691d10
)
ath79: add readonly attribute for ath79_soc_desc
author
Wills Wang
<
[email protected]
>
Tue, 12 Apr 2016 10:24:10 +0000
(18:24 +0800)
committer
Daniel Schwierzeck
<
[email protected]
>
Fri, 20 May 2016 23:36:38 +0000
(
01:36
+0200)
use 'const' keywork to qualify readonly attribute for lookup-table member
Signed-off-by: Wills Wang <
[email protected]
>
arch/mips/mach-ath79/cpu.c
patch
|
blob
|
history
diff --git
a/arch/mips/mach-ath79/cpu.c
b/arch/mips/mach-ath79/cpu.c
index c6122f2bccb098a76c64331be5d7e2823044e7f3..5756a06d5082de35c4faa6f47c1fa15539b1f5f3 100644
(file)
--- a/
arch/mips/mach-ath79/cpu.c
+++ b/
arch/mips/mach-ath79/cpu.c
@@
-12,13
+12,13
@@
#include <mach/ar71xx_regs.h>
struct ath79_soc_desc {
- enum ath79_soc_type soc;
+
const
enum ath79_soc_type soc;
const char *chip;
- int major;
- int minor;
+
const
int major;
+
const
int minor;
};
-static struct ath79_soc_desc desc[] = {
+static
const
struct ath79_soc_desc desc[] = {
{ATH79_SOC_AR7130, "7130",
REV_ID_MAJOR_AR71XX, AR71XX_REV_ID_MINOR_AR7130},
{ATH79_SOC_AR7141, "7141",